import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '@/components/Home.vue'

const routes: RouteRecordRaw[] = [
  {
    //首页
    path: '/',
    component: Home,
    name: 'home'
  },
  {
    //预约挂号
    path: '/registered',
    name: 'registered',
    component: () =>
      import('@/view/AppointmentManagement/Registered/Registered.vue')
  },
  {
    //预约核酸检测
    path: '/nucleicAcidTesting',
    name: 'nucleicAcidTesting',
    component: () =>
      import(
        '@/view/AppointmentManagement/NucleicAcidTesting/NucleicAcidTesting.vue'
      )
  },
  {
    //预约体检
    path: '/medicalExamination',
    name: 'medicalExamination',
    component: () =>
      import(
        '@/view/AppointmentManagement/MedicalExamination/MedicalExamination.vue'
      )
  },
  {
    //医生排班
    path: '/doctorScheduling',
    name: 'doctorScheduling',
    component: () =>
      import(
        '@/view/AppointmentManagement/DoctorScheduling/DoctorScheduling.vue'
      )
  },
  {
    //门诊消费记录

    path: '/outpatientConsumptionRecords',
    name: 'outpatientConsumptionRecords',
    component: () =>
      import(
        '@/view/ExpenseManagement/OutpatientConsumptionRecords/OutpatientConsumptionRecords.vue'
      )
  },
  {
    //门诊充值记录

    path: '/outpatientTopUpRecords',
    name: 'outpatientTopUpRecords',
    component: () =>
      import(
        '@/view/ExpenseManagement/OutpatientTopUpRecords/OutpatientTopUpRecords.vue'
      )
  },
  {
    //住院消费记录

    path: '/hospitalizationConsumptionRecords',
    name: 'hospitalizationConsumptionRecords',
    component: () =>
      import(
        '@/view/ExpenseManagement/HospitalizationConsumptionRecords/HospitalizationConsumptionRecords.vue'
      )
  },
  {
    //住院充值记录

    path: '/inpatientRechargeRecord',
    name: 'inpatientRechargeRecord',
    component: () =>
      import(
        '@/view/ExpenseManagement/InpatientRechargeRecord/InpatientRechargeRecord.vue'
      )
  },
  {
    //退款记录

    path: '/refundHistory',
    name: 'refundHistory',
    component: () =>
      import('@/view/ExpenseManagement/RefundHistory/RefundHistory.vue')
  },
  {
    //医生管理

    path: '/physicianManagement',
    name: 'physicianManagement',
    component: () =>
      import('@/view/HospitalInfo/PhysicianManagement/PhysicianManagement.vue')
  },
  {
    //科室管理

    path: '/departmentManagement',
    name: 'departmentManagement',
    component: () =>
      import(
        '@/view/HospitalInfo/DepartmentManagement/DepartmentManagement.vue'
      )
  },
  {
    //体检套餐

    path: '/medicalCheckUpPackage',
    name: 'medicalCheckUpPackage',
    component: () =>
      import(
        '@/view/HospitalInfo/MedicalCheckUpPackage/MedicalCheckUpPackage.vue'
      )
  },
  {
    //健康百科

    path: '/encyclopediaOfHealth',
    name: 'encyclopediaOfHealth',
    component: () =>
      import(
        '@/view/HospitalInfo/EncyclopediaOfHealth/EncyclopediaOfHealth.vue'
      )
  },
  {
    //医院导航

    path: '/hospitalNavigation',
    name: 'hospitalNavigation',
    component: () =>
      import('@/view/HospitalInfo/HospitalNavigation/hospitalNavigation.vue')
  },
  {
    //医院简介

    path: '/hospitalProfile',
    name: 'hospitalProfile',
    component: () =>
      import('@/view/HospitalInfo/HospitalProfile/HospitalProfile.vue')
  },
  {
    //预约须知

    path: '/appointmentInstructions',
    name: 'appointmentInstructions',
    component: () =>
      import(
        '@/view/HospitalInfo/AppointmentInstructions/AppointmentInstructions.vue'
      )
  },
  {
    //管理员管理

    path: '/adminManage',
    name: 'adminManage',
    component: () => import('@/view/SystemSettings/AdminManage/AdminManage.vue')
  },
  {
    //角色管理

    path: '/roleManagement',
    name: 'roleManagement',
    component: () =>
      import('@/view/SystemSettings/RoleManagement/RoleManagement.vue')
  },
  {
    //职称管理

    path: '/titleManagement',
    name: 'titleManagement',
    component: () =>
      import('@/view/SystemSettings/TitleManagement/TitleManagement.vue')
  },
  {
    //消息公告

    path: '/messageAnnouncement',
    name: 'messageAnnouncement',
    component: () =>
      import(
        '@/view/SystemSettings/MessageAnnouncement/MessageAnnouncement.vue'
      )
  },
  {
    //修改密码

    path: '/changePassword',
    name: 'changePassword',
    component: () =>
      import('@/view/SystemSettings/ChangePassword/ChangePassword.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
